package com.cloud.open.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author wenjin
 * @since 2019-10-03
 */
@Data
@TableName("open_app")
public class App implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 应用ID
     */
    @TableField("app_id")
    private String appId;

    /**
     * 应用密钥
     */
    @TableField("app_secret")
    private String appSecret;

    /**
     * 应用状态
     */
    @TableField("app_status")
    private Integer appStatus;

    /**
     * 应用名称
     */
    @TableField("app_name")
    private String appName;

    /**
     * 公司名称
     */
    @TableField("company_name")
    private String companyName;

    /**
     * 白名单IP
     */
    @TableField("whitelist_ip")
    private String whitelistIp;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;


    public static final String ID = "id";

    public static final String APP_ID = "app_id";

    public static final String APP_SECRET = "app_secret";

    public static final String APP_STATUS = "app_status";

    public static final String APP_NAME = "app_name";

    public static final String COMPANY_NAME = "company_name";

    public static final String WHITELIST_IP = "whitelist_ip";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_TIME = "update_time";

}
